Skip to content

catalyst/api: centralize OPStack validation into helper functions #592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: optimism
Choose a base branch
from

Conversation

geoknee
Copy link
Contributor

@geoknee geoknee commented Apr 28, 2025

Closes #568

Centralizes OPStack validation for newPayload and forkchoiceUpdated into helper functions in a new file.

  • cleaner diff to upstream
  • single place to maintain these checks going forward as we add more hardforks
  • No need to duplicate in the various newPayloadV3/newPayloadV4 methods
  • adds additional validations which we were previously missing
  • unit tests added for these validations

@geoknee geoknee marked this pull request as ready for review April 28, 2025 12:02
@geoknee geoknee requested a review from a team as a code owner April 28, 2025 12:02
@geoknee geoknee requested a review from tynes April 28, 2025 12:02
@geoknee geoknee requested a review from sebastianst April 28, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

engine api: add checks for withdrawals list
2 participants